package com.lk.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import com.google.gson.annotations.Expose;

/**
 * view:all,group,user,me
 * @author Administrator
 *
 */
@Entity
@Table(name="t_message")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Message {

	@Expose
	private String id;
	@Expose
	private String title;
	@Expose
	private String content;
	@Expose
	private String createTime;
	@Expose
	private String type;
	private String userid;
	private String view;
	
	
	@Id
	@GenericGenerator(name="messageid",strategy="uuid")
	@GeneratedValue(generator="messageid")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getView() {
		return view;
	}
	public void setView(String view) {
		this.view = view;
	}
	
}
